
local mt = ac.skill['灵魂盛宴']
mt.model1 = [[Abilities\Weapons\\igguratMissile\ZigguratMissile.mdl]]
mt.model2 = [[Abilities\Weapons\AvengerMissile\AvengerMissile.mdl]]
function mt:on_add()
    local hero = self.owner
    local count = 0
    self:gc(hero:add('攻击速度',self.data1))
    self:gc(hero:event '单位-击杀'(function(_,_,target)
        local point = target:get_point()
        point:add_effect(self.model1):remove()
        local mover = point:launch_missile(hero,self.model2,500,0,function()
            local data1 = self.data3/self.data2
            hero:add('基础攻击',data1)
        end)
        mover:set_height(65)

    end))
end



local mt = ac.skill['魂之挽歌']
mt.area = 800
mt.targetArt = [[571.mdl]]
mt.missile_art = [[571.mdl]]
mt.missile_speed = 900   --投射物速度
mt.distance = 900

function mt:on_cast_shot()
    local hero = self.owner
    local damage = hero:get('攻击') * self.data1/100

    ac.timer(300,3,function()
        local point = hero:get_point()
        local gourp1 = {}
        local gourp2 = {}
        hero:diffuse_damage(point,self.distance,self.missile_speed){
            damage_type = '魔法',
            damage = damage,
            skill = self,
        }
        for a=1,18 do
            local angle = a*20
            hero:launch_wave(self.missile_art,angle,self.missile_speed,self.distance)
        end
        ac.wait(self.distance/self.missile_speed*1000,function()
            for a=1,18 do
                local angle = a*20
                local point = point - {angle,self.distance}
                point:launch_missile(hero,self.missile_art,self.missile_speed)
            end
        end)
    end)
end